package com.itheima.sh.a_parent_01;

public class Parent {
    //成员变量
    private String name;
    private int  age;
    private String gerden;
    //空参构造
    public Parent() {
    }
    //满参构造
    public Parent(String name, int age, String gerden) {
        this.name = name;
        this.age = age;
        this.gerden = gerden;
    }
    //set/get方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGerden() {
        return gerden;
    }

    public void setGerden(String gerden) {
        this.gerden = gerden;
    }
}
